  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>

	
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<link rel="shortcut icon" type="image/ico" href="http://www.sprymedia.co.uk/media/images/favicon.ico">
		
		<title>Using DataTable with column filter plugin - Server Side Example With three different sources</title>
		<style type="text/css" title="currentStyle">
			@import "media/css/demo_page.css";
			@import "media/css/demo_table.css";
			@import "media/css/themes/base/jquery-ui.css";
		</style>

        <script src="media/js/jquery-1.4.4.min.js" type="text/javascript"></script>
        <script src="media/js/jquery.dataTables.js" type="text/javascript"></script>

        <script src="media/js/jquery-ui.js" type="text/javascript"></script>

        <script src="media/js/jquery.dataTables.columnFilter.js" type="text/javascript"></script>

		<script type="text/javascript" charset="utf-8">
			$(document).ready( function () {
           			$('#example1').dataTable({
                                      "bProcessing": true,
                                      "bServerSide": true,
                                      //"sAjaxSource": "server_processing.js"
                                       "sAjaxSource": "http://datatables.net/release-datatables/examples/server_side/scripts/id_jsonp.php",
									   //"sAjaxSource": "http://datatables.net/release-datatables/examples/server_side/scripts/jsonp.php?p=1&tableexample=1",
                                       "fnServerData": function( sUrl, aoData, fnCallback ) {
                                         	$.ajax( {
                                       				"url": sUrl,
                                       				"data": aoData,
                                       				"success": fnCallback,
                                       				"dataType": "jsonp",
                                       				"cache": false
							                              				} );
                                       }
                                    }).columnFilter({
                                       				sPlaceHolder: "head:before",
                                       				aoColumns: [ { type: "select", values: [ 'Gecko', 'Trident', 'KHTML', 'Misc', 'Presto', 'Webkit', 'Tasman']  },
                                       				  	 { type: "text" },
                                       						 { type: "text" },
                                       						 { type: "text" }
                                       				]
                                       		 });//end example1
									
           			$('#example2').dataTable({
                                      "bProcessing": true,
                                      "bServerSide": true,
                                      //"sAjaxSource": "server_processing.js"
                                       "sAjaxSource": "http://datatables.net/release-datatables/examples/server_side/scripts/jsonp.php",
                                       "fnServerData": function( sUrl, aoData, fnCallback ) {
                                         	$.ajax( {
                                       				"url": sUrl,
                                       				"data": aoData,
                                       				"success": fnCallback,
                                       				"dataType": "jsonp",
                                       				"cache": false
							                              				} );
                                       }
                                    }).columnFilter({
                                       				sPlaceHolder: "head:after",
                                       				aoColumns: [ { type: "text" },
                                       				   { type: "text" },
                                       				   { type: "text" },
                                       				   { type: "text" },
                                       				 	{ type: "select", values: [ 'A', 'C', 'X']}
                                       				]
                                		});//end example2

           			$('#example3').dataTable({
                                      "bProcessing": true,
                                      "bServerSide": true,
                                       "sAjaxSource": "http://datatables.net/release-datatables/examples/server_side/scripts/objects_jsonp.php",
									   //"sAjaxSource": "http://datatables.net/release-datatables/examples/server_side/scripts/jsonp.php?p=3&tableexample=3",
                                       "aoColumns": [
                                          { "mDataProp": "engine" },
                                          { "mDataProp": "browser" },
                                          { "mDataProp": "platform" },
                                          { "mDataProp": "version" },
                                          { "mDataProp": "grade" }
                                          ],
                                       "fnServerData": function( sUrl, aoData, fnCallback ) {
                                         	$.ajax( {
                                       				"url": sUrl,
                                       				"data": aoData,
                                       				"success": fnCallback,
                                       				"dataType": "jsonp",
                                       				"cache": false
							                              				} );
                                       }
                                   }).columnFilter({
                                         			sPlaceHolder: "head:before",
                                         			aoColumns: [ { type: "text"  },
                                         			          	 { type: "text" },
                                         			          	 { type: "text" },
                                         			          	 { type: "text" }
                                           ]
                                   });//end example3
				
			} );
		</script>
        <script type="text/javascript">

            var _gaq = _gaq || [];
            _gaq.push(['_setAccount', 'UA-17838786-4']);
            _gaq.push(['_trackPageview']);

            (function () {
                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
            })();

</script>
	</head>




<body id="dt_example">
		<div id="container">
			<a href="index.html">Home</a>
			<a href="http://code.google.com/p/jquery-datatables-column-filter/wiki/ColumnFilter">Wiki</a> 
			<div class="full_width big">

				JQuery DataTable Column Filter - Server Side Example
			</div>
			 		
	
			
			
			<h1>Live example</h1>







			<div id="demo">

				<table cellpadding="0" cellspacing="0" border="0" class="display" id="example1">
					<thead>
						<tr>
							<th>Rendering engine</th>
							<th>Browser</th>
							<th>Platform(s)</th>
							<th>Engine version</th>
							<th>CSS grade</th>
						</tr>
						<tr>
							<th>Rendering engine</th>
							<th>Browser</th>
							<th>Platform(s)</th>
							<th>Engine version</th>
							<th>CSS grade</th>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<th>Rendering engine</th>
							<th>Browser</th>
							<th>Platform(s)</th>
							<th>Engine version</th>
							<th>CSS grade</th>
						</tr>
					</tfoot>
					<tbody>
					</tbody>
				</table>
				
				<p>Second table</p>
				
				<table cellpadding="0" cellspacing="0" border="0" class="display" id="example2">
					<thead>
						<tr>
							<th>Rendering engine</th>
							<th>Browser</th>
							<th>Platform(s)</th>
							<th>Engine version</th>
							<th>CSS grade</th>
						</tr>
						<tr>
							<th>Rendering engine</th>
							<th>Browser</th>
							<th>Platform(s)</th>
							<th>Engine version</th>
							<th>CSS grade</th>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<th>Rendering engine</th>
							<th>Browser</th>
							<th>Platform(s)</th>
							<th>Engine version</th>
							<th>CSS grade</th>
						</tr>
					</tfoot>
					<tbody>
					</tbody>
				</table>
				<p>Third table</p>
				
				<table cellpadding="0" cellspacing="0" border="0" class="display" id="example3">
					<thead>
						<tr>
							<th>Rendering engine</th>
							<th>Browser</th>
							<th>Platform(s)</th>
							<th>Engine version</th>
							<th>CSS grade</th>
						</tr>
						<tr>
							<th>Rendering engine</th>
							<th>Browser</th>
							<th>Platform(s)</th>
							<th>Engine version</th>
							<th>CSS grade</th>
						</tr>
					</thead>
					<tfoot>
						<tr>
							<th>Rendering engine</th>
							<th>Browser</th>
							<th>Platform(s)</th>
							<th>Engine version</th>
							<th>CSS grade</th>
						</tr>
					</tfoot>
					<tbody>
					</tbody>
				</table>
			</div>
			<div class="spacer"></div>

			
			

			

			<h1>Other examples</h1>
			<ul>

				<li><a href="default.html">Basic usage</a></li>
				<li><a href="customFilters.html">Custom filters</a></li>
				<li><a href="dateRange.html">Date ranges</a></li>
				<li><a href="numberRange.html">Number ranges</a></li>
				<li><a href="serverSide.html">Server-side filtering</a></li>
		    <li><a href="regex.html">Regular expression filtering</a></li>
			</ul>
			
			<div id="footer" style="text-align:center;">
				<span style="font-size:10px;">
					DataTables Column Filter Add-on &copy; Jovan Popovic 2011.<br>
					DataTables designed and created by <a href="http://www.sprymedia.co.uk">Allan Jardine</a> &copy; 2007-2011<br>
				</span>
			</div>
		</div>
	</body>





</html>